home *** CD-ROM | disk | FTP | other *** search
- #ifndef BUILDIN_H
- #define BUILDIN_H
-
-
- /****************************************************************************/
-
-
- /* This file was created automatically by CatComp.
- * Do NOT edit by hand!
- */
-
-
- #ifndef EXEC_TYPES_H
- #include <exec/types.h>
- #endif
-
- #ifdef CATCOMP_ARRAY
- #undef CATCOMP_NUMBERS
- #undef CATCOMP_STRINGS
- #define CATCOMP_NUMBERS
- #define CATCOMP_STRINGS
- #endif
-
- #ifdef CATCOMP_BLOCK
- #undef CATCOMP_STRINGS
- #define CATCOMP_STRINGS
- #endif
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_NUMBERS
-
- #define FUNC0_DESCRIPTION 0
- #define FUNC1_DESCRIPTION 1
- #define FUNC2_DESCRIPTION 2
- #define MSG_ARGUMENTS 3
- #define MSG_REVERSED 4
- #define MSG_COUNTED 5
- #define MSG_ER_TITLE 6
- #define MSG_OKAY_BUTTON 7
- #define MSG_WINDOW_TITLE 8
- #define MSG_CYCLE_GAD 9
- #define MSG_OKAY 10
- #define MSG_CANCEL 11
- #define MSG_CLICK_ME 12
- #define MSG_DO_AGAIN 13
- #define MSG_NICE_EHH 14
- #define MSG_OKAY_DONE 15
- #define MSG_CANCEL_DONE 16
- #define MSG_PROJECT 17
- #define MSG_SAVE 18
- #define MSG_QUIT 19
- #define MSG_NEXT_MENU 20
- #define MSG_ITEM 21
-
- #endif /* CATCOMP_NUMBERS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_STRINGS
-
- #define FUNC0_DESCRIPTION_STR "A simple requester"
- #define FUNC1_DESCRIPTION_STR "Your first window"
- #define FUNC2_DESCRIPTION_STR "This you'll never see..."
- #define MSG_ARGUMENTS_STR "You have supplied"
- #define MSG_REVERSED_STR "In reversed order"
- #define MSG_COUNTED_STR "Signs counted"
- #define MSG_ER_TITLE_STR "DOpus Example Requester"
- #define MSG_OKAY_BUTTON_STR "Go on..."
- #define MSG_WINDOW_TITLE_STR "DOpus Example Window"
- #define MSG_CYCLE_GAD_STR "Cycle me"
- #define MSG_OKAY_STR "Okay"
- #define MSG_CANCEL_STR "Cancel"
- #define MSG_CLICK_ME_STR "Click me"
- #define MSG_DO_AGAIN_STR "Do again"
- #define MSG_NICE_EHH_STR "Nice ehh"
- #define MSG_OKAY_DONE_STR "Okay button clicked"
- #define MSG_CANCEL_DONE_STR "Cancel button clicked"
- #define MSG_PROJECT_STR "Project"
- #define MSG_SAVE_STR "Save"
- #define MSG_QUIT_STR "Quit"
- #define MSG_NEXT_MENU_STR "Next Menu"
- #define MSG_ITEM_STR "Item"
-
- #endif /* CATCOMP_STRINGS */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_ARRAY
-
- struct CatCompArrayType
- {
- LONG cca_ID;
- STRPTR cca_Str;
- };
-
- static const struct CatCompArrayType CatCompArray[] =
- {
- {FUNC0_DESCRIPTION,(STRPTR)FUNC0_DESCRIPTION_STR},
- {FUNC1_DESCRIPTION,(STRPTR)FUNC1_DESCRIPTION_STR},
- {FUNC2_DESCRIPTION,(STRPTR)FUNC2_DESCRIPTION_STR},
- {MSG_ARGUMENTS,(STRPTR)MSG_ARGUMENTS_STR},
- {MSG_REVERSED,(STRPTR)MSG_REVERSED_STR},
- {MSG_COUNTED,(STRPTR)MSG_COUNTED_STR},
- {MSG_ER_TITLE,(STRPTR)MSG_ER_TITLE_STR},
- {MSG_OKAY_BUTTON,(STRPTR)MSG_OKAY_BUTTON_STR},
- {MSG_WINDOW_TITLE,(STRPTR)MSG_WINDOW_TITLE_STR},
- {MSG_CYCLE_GAD,(STRPTR)MSG_CYCLE_GAD_STR},
- {MSG_OKAY,(STRPTR)MSG_OKAY_STR},
- {MSG_CANCEL,(STRPTR)MSG_CANCEL_STR},
- {MSG_CLICK_ME,(STRPTR)MSG_CLICK_ME_STR},
- {MSG_DO_AGAIN,(STRPTR)MSG_DO_AGAIN_STR},
- {MSG_NICE_EHH,(STRPTR)MSG_NICE_EHH_STR},
- {MSG_OKAY_DONE,(STRPTR)MSG_OKAY_DONE_STR},
- {MSG_CANCEL_DONE,(STRPTR)MSG_CANCEL_DONE_STR},
- {MSG_PROJECT,(STRPTR)MSG_PROJECT_STR},
- {MSG_SAVE,(STRPTR)MSG_SAVE_STR},
- {MSG_QUIT,(STRPTR)MSG_QUIT_STR},
- {MSG_NEXT_MENU,(STRPTR)MSG_NEXT_MENU_STR},
- {MSG_ITEM,(STRPTR)MSG_ITEM_STR},
- };
-
- #endif /* CATCOMP_ARRAY */
-
-
- /****************************************************************************/
-
-
- #ifdef CATCOMP_BLOCK
-
- static const char CatCompBlock[] =
- {
- "\x00\x00\x00\x00\x00\x14"
- FUNC0_DESCRIPTION_STR "\x00\x00"
- "\x00\x00\x00\x01\x00\x12"
- FUNC1_DESCRIPTION_STR "\x00"
- "\x00\x00\x00\x02\x00\x1A"
- FUNC2_DESCRIPTION_STR "\x00\x00"
- "\x00\x00\x00\x03\x00\x12"
- MSG_ARGUMENTS_STR "\x00"
- "\x00\x00\x00\x04\x00\x12"
- MSG_REVERSED_STR "\x00"
- "\x00\x00\x00\x05\x00\x0E"
- MSG_COUNTED_STR "\x00"
- "\x00\x00\x00\x06\x00\x18"
- MSG_ER_TITLE_STR "\x00"
- "\x00\x00\x00\x07\x00\x0A"
- MSG_OKAY_BUTTON_STR "\x00\x00"
- "\x00\x00\x00\x08\x00\x16"
- MSG_WINDOW_TITLE_STR "\x00\x00"
- "\x00\x00\x00\x09\x00\x0A"
- MSG_CYCLE_GAD_STR "\x00\x00"
- "\x00\x00\x00\x0A\x00\x06"
- MSG_OKAY_STR "\x00\x00"
- "\x00\x00\x00\x0B\x00\x08"
- MSG_CANCEL_STR "\x00\x00"
- "\x00\x00\x00\x0C\x00\x0A"
- MSG_CLICK_ME_STR "\x00\x00"
- "\x00\x00\x00\x0D\x00\x0A"
- MSG_DO_AGAIN_STR "\x00\x00"
- "\x00\x00\x00\x0E\x00\x0A"
- MSG_NICE_EHH_STR "\x00\x00"
- "\x00\x00\x00\x0F\x00\x14"
- MSG_OKAY_DONE_STR "\x00"
- "\x00\x00\x00\x10\x00\x16"
- MSG_CANCEL_DONE_STR "\x00"
- "\x00\x00\x00\x11\x00\x08"
- MSG_PROJECT_STR "\x00"
- "\x00\x00\x00\x12\x00\x06"
- MSG_SAVE_STR "\x00\x00"
- "\x00\x00\x00\x13\x00\x06"
- MSG_QUIT_STR "\x00\x00"
- "\x00\x00\x00\x14\x00\x0A"
- MSG_NEXT_MENU_STR "\x00"
- "\x00\x00\x00\x15\x00\x06"
- MSG_ITEM_STR "\x00\x00"
- };
-
- #endif /* CATCOMP_BLOCK */
-
-
- /****************************************************************************/
-
-
- struct LocaleInfo
- {
- APTR li_LocaleBase;
- APTR li_Catalog;
- };
-
-
- #ifdef CATCOMP_CODE
-
- STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
- {
- LONG *l;
- UWORD *w;
- STRPTR builtIn;
-
- l = (LONG *)CatCompBlock;
-
- while (*l != stringNum)
- {
- w = (UWORD *)((ULONG)l + 4);
- l = (LONG *)((ULONG)l + (ULONG)*w + 6);
- }
- builtIn = (STRPTR)((ULONG)l + 6);
-
- #undef LocaleBase
- #define LocaleBase li->li_LocaleBase
-
- if (LocaleBase)
- return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
- #undef LocaleBase
-
- return(builtIn);
- }
-
-
- #endif /* CATCOMP_CODE */
-
-
- /****************************************************************************/
-
-
- #endif /* BUILDIN_H */
-